//符合AMD规范的写在前面
define(function(require){
    var $=require('jquery'),
        _=require('underscore'),
        jqueryCookie=require('jqueryCookie'),
        jqueryValidate=require('jqueryValidate'),
        foundation=require('foundation'),
        template=require('template');

    function LoginPage(){
        this.arr=['a','b','c','d','e','f'];
        this.btn=$("#subBtn");
    }

    LoginPage.prototype.render=function(){
        this._init();
    };

    LoginPage.prototype._init=function(){
        $(document).foundation();
        $(this.btn).click(function(){
            var data=$("#regFormList").serialize();
            alert(data);
        });

        _.each(this.arr,function(v,i){
            console.log(v,i);
        });
    };

    return LoginPage;
});
